window.addEventListener('load', function () {
    //导航栏下拉菜单制作
    var right = document.querySelector('.right');
    var lis = right.querySelectorAll('.xiala');
    for (var i = 0; i < lis.length; i++) {
        lis[i].addEventListener('mouseover', function () {
            this.children[0].style.backgroundColor = '#b1191a';
            this.children[0].style.color = '#fff';
            this.children[1].style.display = 'block'
        })
        lis[i].addEventListener('mouseout', function () {
            this.children[0].style.backgroundColor = '';
            this.children[0].style.color = '';
            this.children[1].style.display = 'none'
        })
    }
    //导航栏下拉菜单制作完成
})